class Location < ActiveRecord::Base

  has_many :users
  
  has_many :check_ins
  
  has_many :incoming_items, :class_name => 'Item', :foreign_key => "destination_id"
  has_many :outgoing_items, :class_name => 'Item', :foreign_key => "source_id"
  
  has_many :stop_instances
  has_many :stops

  validates_presence_of :name
  validates_presence_of :address
  
end
